package model;

import java.io.Serializable;

public class UserDTO implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String id;
    private String name;
    private String userName;
    private String password;
    private String address;
    private String email;
    private int phoneNumber;
    private PositionDTO position;
    private UserDTO manager;
    private double consumeAnnualAllowance;
    private double consumeMedicalAllowance;

    public UserDTO() {
        super();
        // TODO Auto-generated constructor stub
    }
    
    public UserDTO(String id) {
        super();
        // TODO Auto-generated constructor stub
        this.id = id;
    }

    public UserDTO(String id, String name, String userName, String password,
            String address, String email, int phoneNumber,
            PositionDTO position, UserDTO manager,
            double consumeAnnualAllowance, double consumeMedicalAllowance) {
        super();
        this.id = id;
        this.name = name;
        this.userName = userName;
        this.password = password;
        this.address = address;
        this.email = email;
        this.phoneNumber = phoneNumber;
        this.position = position;
        this.manager = manager;
        this.consumeAnnualAllowance = consumeAnnualAllowance;
        this.consumeMedicalAllowance = consumeMedicalAllowance;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public double getConsumeAnnualAllowance() {
        return consumeAnnualAllowance;
    }

    public void setConsumeAnnualAllowance(double consumeAnnualAllowance) {
        this.consumeAnnualAllowance = consumeAnnualAllowance;
    }

    public double getConsumeMedicalAllowance() {
        return consumeMedicalAllowance;
    }

    public void setConsumeMedicalAllowance(double consumeMedicalAllowance) {
        this.consumeMedicalAllowance = consumeMedicalAllowance;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(int phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public PositionDTO getPosition() {
        return position;
    }

    public void setPosition(PositionDTO position) {
        this.position = position;
    }

    public UserDTO getManager() {
        return manager;
    }

    public void setManager(UserDTO manager) {
        this.manager = manager;
    }

    public static long getSerialversionuid() {
        return serialVersionUID;
    }

    @Override
    public String toString() {
        return "UserDTO [id=" + id + ", name=" + name + ", userName="
                + userName + ", password=" + password + ", address=" + address
                + ", email=" + email + ", phoneNumber=" + phoneNumber
                + ", position=" + position + ", manager=" + manager
                + ", consumeAnnualAllowance=" + consumeAnnualAllowance
                + ", consumeMedicalAllowance=" + consumeMedicalAllowance + "]";
    }

}